#include "CreateProjectile.h"
#include "Entity.h"

CCreateProjectile::CCreateProjectile(CEntity* shooter)
	:CMessage( Msg_CreateProjectile )
{
	//tVector2D targetVec;
	//targetVec.fX = shooter->GetTarget - this->GetPosX();
	//targetVec.fY = m_pWaypoint->GetPosY() - this->GetPosY();
	//
	////Normalize
	//float fLength = sqrt((targetVec.fX * targetVec.fX) + (targetVec.fY * targetVec.fY));
	//
	////Multiple by Move Speed, this should be a float having 1 be base movement speed
	//
	//targetVec.fX = targetVec.fX / fLength;
	//targetVec.fY = targetVec.fY / fLength;
	//
	//
	//SetVelX(targetVec.fX*100);
	//SetVelY(targetVec.fY*100);
}


CCreateProjectile::~CCreateProjectile(void)
{
}
